#ifndef DAYINFO_H
#define DAYINFO_H

#include "dayinfoui.h"
#include "dayinfoInterface.h"

#include <QObject>

class DayInfo : public QObject, public DayInfoInterface {
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "com.example.DayInfoInterface/1.0")
    Q_INTERFACES(DayInfoInterface)

public:
    QWidget *createWidget(const QString& temp, const QString& type, const QString& range,
                          const QString& city, const QPixmap& icon) override;

private:
    class DayInfoUI *dayinfoUI = nullptr;
};

#endif // DAYINFO_H
